﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Circle:Shape
    {
        protected int radius;
        public int Radius 
        {
            get { return this.radius; }
            set { this.radius = value; }
        }

        public Circle() { }
        public Circle(int radius) 
        {
            this.radius = radius;
        }
        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine(radius*radius*3.14);
        }
    }
}
